package cl.uchile.sketchpad.persistance.dao;

import java.util.List;

import cl.uchile.sketchpad.persistance.model.User;

public interface UserDAO {

	/**
	 * Searches for user with given username or creates it if not found and returns it
	 * @param username
	 * @return
	 */
	public User getFenUser(String username);
	public User getGuestUser(String name, String lastName);
	
	public User findById(Integer id);
	public User findByMail(String mail);
	public User findByUsername(String username);
	
	public List<User> getAll();
	public List<User> getTVs();
	public void persist(User user);

}


